package com.meisupic.copyright.support;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author lanjian
 * @Date 2018/3/12 下午9:25
 */
//@FeignClient(name = "meisuInterfaceClient", url = "http://www.meisupic.com/interface")

public interface MeisuInterfaceClient {

  @RequestMapping("/get_user_sale_list.php")
  String getUserSaleList(@RequestParam("key_id") String keyId,
      @RequestParam("user_id") String userId, @RequestParam("secret") String secret,
      @RequestParam("page") int page, @RequestParam("limit") int limit,
      @RequestParam("search_key") String searchKey);

  @RequestMapping("/get_user_sale_info.php")
  String getUserSaleInfo(@RequestParam("key_id") String keyId,
      @RequestParam("user_id") String userId, @RequestParam("secret") String secret);

  @RequestMapping("/get_user_order_list.php")
  String getUserOrderList(@RequestParam("key_id") String keyId,
      @RequestParam("user_id") String userId, @RequestParam("secret") String secret,
      @RequestParam("page") int page, @RequestParam("limit") int limit,
      @RequestParam("search_key") String searchKey, @RequestParam("time_start") String startDate,
      @RequestParam("time_end") String endDate);

  @RequestMapping("/get_user_settlement_list.php")
  String getUsrSettlementList(@RequestParam("key_id") String keyId,
      @RequestParam("user_id") String userId, @RequestParam("secret") String secret,
      @RequestParam("page") int page, @RequestParam("limit") int limit,
      @RequestParam("time_start") String startDate,
      @RequestParam("time_end") String endDate);

  @RequestMapping(value = "/post_message.php", method = RequestMethod.POST)
  String sendMessage(@RequestParam(name = "key_id") String keyId,
      @RequestParam(name = "tel") String tel,
      @RequestParam(name = "secret") String secret, @RequestParam(name = "content") String content);


}
